﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

/// <summary>
/// 始终面向摄像机
/// </summary>
public class OULookCamera : MonoBehaviour
{
    public Camera lookCamera;

    private void OnEnable()
    {
        if (lookCamera == null)
            lookCamera = Camera.main;
    }

    private void FixedUpdate()
    {
        transform.LookAt(lookCamera.transform);
    }
}